﻿using PARK.Common.Const;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PARK.Attend.Entitys.Entity
{
    /// <summary>
    /// 考勤报表
    /// </summary>
    [SugarTable("attend_report")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class AttendReportEntity
    {
        /// <summary>
        /// Id
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
        public string Id { get; set; }
        /// <summary>
        /// 打卡日期
        /// </summary>
        [SugarColumn(ColumnName = "Signdate")]
        public string Signdate { get; set; }
        /// <summary>
        /// 职员Id
        /// </summary>
        [SugarColumn(ColumnName = "EmployeeId")]
        public string EmployeeId { get; set; }
        /// <summary>
        /// 工号
        /// </summary>
        [SugarColumn(ColumnName = "JobNo")]
        public string JobNo { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [SugarColumn(ColumnName = "ReallName")]
        public string ReallName { get; set; }
        /// <summary>
        /// 打卡卡号
        /// </summary>
        [SugarColumn(ColumnName = "CardNo")]
        public string CardNo { get; set; }
        /// <summary>
        /// 上班打卡时间
        /// </summary>
        [SugarColumn(ColumnName = "upSignTime")]
        public string upSignTime { get; set; }
        /// <summary>
        /// 下班打卡时间
        /// </summary>
        [SugarColumn(ColumnName = "offSignTime")]
        public string offSignTime { get; set; }
        /// <summary>
        /// 打卡状态 1正常  2迟到  3早退 
        /// </summary>
        [SugarColumn(ColumnName = "upSignStatus")]
        public int upSignStatus { get; set; }
        /// <summary>
        /// 打卡状态 1正常  2迟到  3早退 
        /// </summary>
        [SugarColumn(ColumnName = "offSignStatus")]
        public int offSignStatus { get; set; }
        /// <summary>
        /// 早退、提前、加班时长_分钟
        /// </summary>
        [SugarColumn(ColumnName = "upSignMint")]
        public int upSignMint { get; set; }
        /// <summary>
        /// 早退、提前、加班时长_分钟
        /// </summary>
        [SugarColumn(ColumnName = "offSignMint")]
        public int offSignMint { get; set; }
        /// <summary>
        /// 设备id
        /// </summary>
        [SugarColumn(ColumnName = "ctlId")]
        public string ctlId { get; set; }
        /// <summary>
        /// 设备sn
        /// </summary>
        [SugarColumn(ColumnName = "ctlSn")]
        public string ctlSn { get; set; }
        /// <summary>
        /// 设备sn
        /// </summary>
        [SugarColumn(ColumnName = "ctlName")]
        public string ctlName { get; set; }

        /// <summary>
        /// 部门Id
        /// </summary>
        [SugarColumn(ColumnName = "DepartId")]
        public string DepartId { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        [SugarColumn(ColumnName = "DepartName")]
        public string DepartName { get; set; }
        /// <summary>
        /// SortCode
        /// </summary>
        [SugarColumn(ColumnName = "SortCode")]
        public long? SortCode { get; set; }

        /// <summary>
        /// 所属公司Id
        /// </summary>
        [SugarColumn(ColumnName = "CompanyId")]
        public string CompanyId { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        [SugarColumn(ColumnName = "CompanyName")]
        public string CompanyName { get; set; }
    }
}
